import request from '@/utils/request'

// 查询民族信息列表
export function listEthnicity(query) {
  return request({
    url: '/baoming/ethnicity/list',
    method: 'get',
    params: query
  })
}

// 查询民族信息详细
export function getEthnicity(id) {
  return request({
    url: '/baoming/ethnicity/' + id,
    method: 'get'
  })
}

// 新增民族信息
export function addEthnicity(data) {
  return request({
    url: '/baoming/ethnicity',
    method: 'post',
    data: data
  })
}

// 修改民族信息
export function updateEthnicity(data) {
  return request({
    url: '/baoming/ethnicity',
    method: 'put',
    data: data
  })
}

// 删除民族信息
export function delEthnicity(id) {
  return request({
    url: '/baoming/ethnicity/' + id,
    method: 'delete'
  })
}
